package com.wms.utils;

import com.wms.dto.UserInfoDto;

public class SessionUtils {

    static ThreadLocal<UserInfoDto> threadLocal=new ThreadLocal<>();

    //存
    public static void set(UserInfoDto userInfoDto){
        threadLocal.set(userInfoDto);
    }

    //取
    public static UserInfoDto get(){
        return threadLocal.get();
    }

    //清
    public static void remove(){
        threadLocal.remove();
    }
}
